Skip to content

build(deps-dev): bump typescript from 5.9.3 to 6.0.2#29

Merged
justin-layerv merged 2 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2
Apr 22, 2026
Merged

build(deps-dev): bump typescript from 5.9.3 to 6.0.2#29
justin-layerv merged 2 commits intomainfrom
dependabot/npm_and_yarn/typescript-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 15, 2026

Bumps typescript from 5.9.3 to 6.0.2.

Release notes

Sourced from typescript's releases.

TypeScript 6.0

For release notes, check out the release announcement blog post.

Downloads are available on:

TypeScript 6.0 Beta

For release notes, check out the release announcement.

Downloads are available on:

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 15, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch 2 times, most recently from d19551e to a606340 Compare April 16, 2026 06:01
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.2.
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v5.9.3...v6.0.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-version: 6.0.2
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/typescript-6.0.2 branch from a606340 to 242551d Compare April 16, 2026 06:09
@justin-layerv justin-layerv changed the title build(deps-dev): Bump typescript from 5.9.3 to 6.0.2 build(deps-dev): bump typescript from 5.9.3 to 6.0.2 Apr 16, 2026
TS 6.0 no longer auto-discovers @types/* packages when `lib` is
explicitly set. Without `types: ["node"]`, global Node types
(fetch, Response, URLSearchParams, AbortSignal, console, setTimeout,
DOMException) are absent from the compilation, causing 12 errors.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@claude
Copy link
Copy Markdown

claude Bot commented Apr 17, 2026

PR Review: build(deps-dev): bump typescript from 5.9.3 to 6.0.2

Summary

This is a Dependabot PR that bumps TypeScript from 5.9.3 to 6.0.2 (a major version bump), with a follow-up commit that adds "types": ["node"] to tsconfig.json to fix a TS 6.0 behavioral change around @types/* auto-discovery when lib is explicitly set.

CI passes. Two commits: the Dependabot version bump, and the manual compatibility fix.


Code Quality & Correctness

The tsconfig.json fix is correct and well-placed. Since the project already sets "lib": ["ES2022"], TS 6.0's stricter type resolution no longer auto-discovers @types/node. Adding "types": ["node"] is the right fix — it's explicit, minimal, and matches the existing @types/node dev dependency in package.json.

The commit message on the fix commit is excellent — it explains why the change is needed and which types were missing. This is exactly the kind of context future maintainers will appreciate.


Potential Concerns

  1. Major version bump with a caret range (^6.0.2): The package.json now has "typescript": "^6.0.2". Since TypeScript is a dev dependency and not a runtime dependency, this is fine — it won't affect consumers. The caret range will allow minor/patch upgrades within 6.x, which is the expected behavior.

  2. TS 6.0 breaking changes beyond type resolution: TypeScript 6.0 deprecated assert in import attributes in favor of with. This codebase doesn't use import assertions, so this isn't a concern. I scanned the source and don't see any usage patterns that would be affected by other TS 6.0 breaking changes (e.g., no enum merging edge cases, no import = syntax).

  3. skipLibCheck: true is already set: This provides a safety net against type conflicts in node_modules. Good — no change needed.


Security

No security concerns. This is a dev-only dependency bump with no runtime impact. The lockfile integrity hashes are updated correctly.


Test Coverage

CI tests pass. Since this is a compiler toolchain upgrade rather than a code change, the existing test suite serves as an adequate regression check — if the code compiles and tests pass under TS 6.0, the upgrade is safe.


Verdict

Looks good to merge. The changes are minimal, correct, and well-documented. The types: ["node"] addition is the right fix for TS 6.0 compatibility, and CI confirms everything works.

🤖 Generated with Claude Code

@justin-layerv justin-layerv merged commit a464289 into main Apr 22, 2026
3 checks passed
@justin-layerv justin-layerv deleted the dependabot/npm_and_yarn/typescript-6.0.2 branch April 22, 2026 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant